<?php
/**
 * The SIDN EPP Result object
 *
 * <Insert random introduction here...>
 *
 *
 *
 * @author Ralph de Boom <php5-sidnepp@mijndomein.nl>
 * @author Peter Keizer <php5-sidnepp@mijndomein.nl>
 * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU Public License v3
 * @copyright http://www.mijndomein.nl/
 * @version 0.5
 * @link http://php5-sidnepp.svn.sourceforge.net/viewvc/php5-sidnepp/trunk/dev/docs/index.html
 * @see http://php5-sidnepp.svn.sourceforge.net/viewvc/php5-sidnepp/trunk/dev/docs/php5-sidnepp/SidnDomainInfoResult.html
 * @package php5-sidnepp
 */

class SidnDomainInfoResult extends SidnEppResult
{
	/**
	 * Holds the domainname
	 * @var string $domainname
	 */
	private $domain;


	/**
	 *
	 * @param string $status
	 * @param int $code
	 * @param string $message
	 * @param SidnDomain $domain
	 * @return void
	 */
	public function  __construct($status, $code, $message, SidnDomain $domain)
	{
		$this->setStatus($status);
		$this->setStatusMessage($message);
		$this->setCode($code);
		$this->setDomain($domain);	
	}
	/**
	 * Sets the domain
	 *
	 * @param SidnDomain $domain
	 */
	public function setDomain(SidnDomain $domain)
	{
		$this->domain = $domain;
	}
	/**
	 * Gets the domain
	 *
	 * @return SidnDomain $domain
	 */
	public function getDomain()
	{
		return $this->domain;		
	}
	
}

